package com.stms.service;

import com.stms.pojo.Purchase;
import org.springframework.data.domain.Page;

import java.util.List;

public interface PurchaseService {
    public boolean addPurchase(Purchase purchase);

    public boolean editPurchase(Purchase purchase);

    public void deletaBatch(String purchaseIds);

    public Page<Purchase> fuzzyQuery(Integer pageNum,Integer pageSize,String direction,Purchase purchase);

    public Page<Purchase> findByPage(Integer pageNum, Integer pageSize);
}
